package com.ruoyi.factory.bom.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料模型对象 t_raw_material_cost
 *
 * @author ruoyi
 * @date 2022-10-23
 */
public class MaterialCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 类型编码0-原料,1-成品 */
    @Excel(name = "类型编码0-原料,1-成品")
    private String type;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String partId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String chinaName;

    /** 别名 */
    @Excel(name = "别名")
    private String asName;

    /** 年度 */
    @Excel(name = "年度")
    private String year;

    /** 期间 */
    @Excel(name = "期间")
    private String moth;

    /** 无税单价 */
    @Excel(name = "无税单价")
    private BigDecimal price;

    /** 含税单价 */
    @Excel(name = "含税单价")
    private BigDecimal taxPrice;

    /** 市场价格无税 */
    @Excel(name = "市场价格无税")
    private BigDecimal marketPrice;

    /** 含税市场价格 */
    @Excel(name = "含税市场价格")
    private BigDecimal marktaxPrice;

    /** 价格时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "价格时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date priceTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateName;

    /** 备注 */
    @Excel(name = "备注")
    private String marks;

    /** 大宗原料 0-否 1-大宗 */
    @Excel(name = "大宗原料 0-否 1-大宗")
    private String bulk;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setPartId(String partId)
    {
        this.partId = partId;
    }

    public String getPartId()
    {
        return partId;
    }
    public void setChinaName(String chinaName)
    {
        this.chinaName = chinaName;
    }

    public String getChinaName()
    {
        return chinaName;
    }
    public void setAsName(String asName)
    {
        this.asName = asName;
    }

    public String getAsName()
    {
        return asName;
    }
    public void setYear(String year)
    {
        this.year = year;
    }

    public String getYear()
    {
        return year;
    }
    public void setMoth(String moth)
    {
        this.moth = moth;
    }

    public String getMoth()
    {
        return moth;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setTaxPrice(BigDecimal taxPrice)
    {
        this.taxPrice = taxPrice;
    }

    public BigDecimal getTaxPrice()
    {
        return taxPrice;
    }
    public void setMarketPrice(BigDecimal marketPrice)
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice()
    {
        return marketPrice;
    }
    public void setMarktaxPrice(BigDecimal marktaxPrice)
    {
        this.marktaxPrice = marktaxPrice;
    }

    public BigDecimal getMarktaxPrice()
    {
        return marktaxPrice;
    }
    public void setPriceTime(Date priceTime)
    {
        this.priceTime = priceTime;
    }

    public Date getPriceTime()
    {
        return priceTime;
    }
    public void setUpdateName(String updateName)
    {
        this.updateName = updateName;
    }

    public String getUpdateName()
    {
        return updateName;
    }
    public void setMarks(String marks)
    {
        this.marks = marks;
    }

    public String getMarks()
    {
        return marks;
    }
    public void setBulk(String bulk)
    {
        this.bulk = bulk;
    }

    public String getBulk()
    {
        return bulk;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("partId", getPartId())
                .append("chinaName", getChinaName())
                .append("asName", getAsName())
                .append("year", getYear())
                .append("moth", getMoth())
                .append("price", getPrice())
                .append("taxPrice", getTaxPrice())
                .append("marketPrice", getMarketPrice())
                .append("marktaxPrice", getMarktaxPrice())
                .append("priceTime", getPriceTime())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("updateName", getUpdateName())
                .append("marks", getMarks())
                .append("bulk", getBulk())
                .toString();
    }
}
